from sqlalchemy import String, Column, Integer

from app.dependencies.database import Base
from app.models.base import TimestampMixin


class Manager(Base, TimestampMixin):
    __tablename__ = 'manager'
    __table_args__ = {
        'comment': '管理员表',
    }
    id = Column(Integer, primary_key=True, autoincrement=True)
    username = Column(String(25), nullable=False, unique=True, comment='用户名')
    password = Column(String(125), nullable=False, comment='密码')
